package com.zhijian.medical.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "常规病例-归档")
public class RoutineSampleArchive {

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("归档数据ID")
    private Long sampleId;

    @ApiModelProperty("归档数据ID集合")
    @NotNull(message = "归档数据ID列表是必须的")
    @TableField(exist = false)
    private List<Long> sampleIdList;

    @ApiModelProperty("归档人名称")
    private String archiverName;

    @ApiModelProperty("归档人")
    private Long archiverId;

    @ApiModelProperty("归档时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("归档状态 0 为归档 1 已归档 2 已出借")
    private Integer state;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("归档类型 0 切片归档 1 蜡块归档")
    private Integer archiveType;
}
